import request from '@/utils/request'
export function testDown(data) {
  return request({
    url: 'http://localhost:8067/admin/moment/exportMomentList',
    // url: 'http://localhost:8067/admin/cookbook/exportCookbookList',
    // url: 'http://52.83.169.74:8067/admin/moment/exportMomentList',
    // url: 'http://52.83.169.74:8067/admin/cookbook/exportCookbookList',
    // url: 'http://52.83.169.74:8067/admin/user/exportUserList',
    method: 'post',
    data: data
  })
}

export function getUserInfo(data) {
  return request({
    url: '/user/getUserInfo',
    method: 'post',
    data: data
  })
}
export function updateUser(data) {
  return request({
    url: '/user/updateUser',
    method: 'post',
    data: data
  })
}
export function checkVersion(data) {
  return request({
    url: '/user/checkVersion',
    method: 'post',
    data: data
  })
}

export function getGonggao(data) {
  return request({
    url: '/user/getGonggao',
    method: 'post',
    data: data
  })
}

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data: data
  })
}

export function addUser(data) {
  return request({
    url: '/admin/addUser',
    method: 'post',
    data: data
  })
}

export function delDiancan(data) {
  return request({
    url: '/admin/delDiancan',
    method: 'post',
    data: data
  })
}
export function delDiancanMe(data) {
  return request({
    url: '/user/delDiancanMe',
    method: 'post',
    data: data
  })
}

export function getYonghu(data) {
  return request({
    url: '/user/getYonghu',
    method: 'post',
    data: data
  })
}

export function getEchartsData(data) {
  return request({
    url: '/user/getEchartsData',
    method: 'post',
    data: data
  })
}
export function getEchartsDataMyself(data) {
  return request({
    url: '/user/getEchartsDataMyself',
    method: 'post',
    data: data
  })
}

export function getFabu(data) {
  return request({
    url: '/user/getFabu',
    method: 'post',
    data: data
  })
}

export function getFoods(data) {
  return request({
    url: '/user/getFoods',
    method: 'post',
    data: data
  })
}

export function addFood(data) {
  return request({
    url: '/admin/addFood',
    method: 'post',
    data: data
  })
}

export function delFood(data) {
  return request({
    url: '/admin/delFood',
    method: 'post',
    data: data
  })
}

export function delFabu(data) {
  return request({
    url: '/admin/delFabu',
    method: 'post',
    data: data
  })
}

export function fabu(data) {
  return request({
    url: '/admin/fabu',
    method: 'post',
    data: data
  })
}

export function diancan(data) {
  return request({
    url: '/user/diancan',
    method: 'post',
    data: data
  })
}

export function getDiancan(data) {
  return request({
    url: '/user/getDiancan',
    method: 'post',
    data: data
  })
}

export function sendRecommendApi(data) {
  return request({
    url: '/user/sendRecommend',
    method: 'post',
    data: data
  })
}

export function getActivityList(data) {
  return request({
    url: '/club/getActivityList',
    method: 'post',
    data: data
  })
}
export function getClubList(data) {
  return request({
    url: '/club/getClubList',
    method: 'post',
    data: data
  })
}
export function getClubinfoByUser(data) {
  return request({
    url: '/club/getClubinfoByUser',
    method: 'post',
    data: data
  })
}
export function addActivity(data) {
  return request({
    url: '/club/addActivity',
    method: 'post',
    data: data
  })
}
export function joinActivity(data) {
  return request({
    url: '/club/joinActivity',
    method: 'post',
    data: data
  })
}
export function getYonghuByClub(data) {
  return request({
    url: '/club/getYonghuByClub',
    method: 'post',
    data: data
  })
}
export function addClub(data) {
  return request({
    url: '/club/addClub',
    method: 'post',
    data: data
  })
}

export function submit(data) {
  return request({
    url: '/club/submitPojections',
    method: 'post',
    data: data
  })
}

export function getList(data) {
  return request({
    url: '/club/getProjectionsInfo',
    method: 'post',
    data: data
  })
}
export function getMatchSchedule(data) {
  return request({
    url: '/club/getMatchSchedule',
    method: 'post',
    data: data
  })
}

export function createPoint(data) {
  return request({
    url: '/point/createPoint',
    method: 'post',
    data: data
  })
}





